/*
	libsimple_graphical - unambitious C++ graphical library
	https://notabug.org/namark/libsimple_graphical
	https://gitlab.com/namark/libsimple_graphical
	https://github.com/namark/libsimple_graphical

	Copyright (C) 2017-2019 respective authors/contributors

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SIMPLE_GRAPHICAL_ALGORITHM_H
#define SIMPLE_GRAPHICAL_ALGORITHM_H

#include "common_def.h"
#include "color.h"

namespace simple::graphical
{
	class surface;
	class renderer;

	bool fill(const surface& surf, color col);
	bool fill(const surface& surf, color col, const range2D& area);
	bool fill(const renderer& rend);
	bool fill(const renderer& rend, const rgba_pixel& color);
	bool fill(const renderer& rend, const range2D& area);
	bool fill(const renderer& rend, const rgba_pixel& color, const range2D& area);

	bool blit(const surface& source, const surface& destination, int2 position = int2::zero());
	bool blit(const surface& source, range2D src_range, const surface& destination, int2 position = int2::zero());
	bool blit(const surface& source, const surface& destination, range2D dest_range);
	bool blit(const surface& source, range2D src_range, const surface& destination, range2D dest_range);

	surface convert(const surface& source, const pixel_format& format);

} // namespace simple::graphical

#endif /* end of include guard */
